package com.yl.chainStore.services.warehouse

import com.yl.chainStore.entity.warehouse.WarehouseProfitLossOrder
import com.yl.chainStore.entity.warehouse.WarehouseProfitLossOrderDetail
import com.yl.common.control.ResponseBody


/**
 * 损益单管理
 */
interface IWarehouseProfitLossOrderService {

	/**
	 * 获取基本信息
	 */
	fun getOrder(orderId:Long):WarehouseProfitLossOrder?

	/**
	 * 添加明细
	 */
	fun addDetail(detail: WarehouseProfitLossOrderDetail): ResponseBody

	/**
	 * 获取明细
	 */
	fun getOrderDetail(orderId:Long):List<WarehouseProfitLossOrderDetail>

	/**
	 * 审核通过 订单完成，执行
	 */
	fun completeOrder(orderId:Long):ResponseBody

	/**
	 * 审核不通过
	 */
	fun noPassOrder(orderId: Long):ResponseBody

	/**
	 * 取消
	 */
	fun cancelOrder(orderId:Long):ResponseBody

	/**
	 * 删除订单
	 */
	fun delOrder(orderId: Long):ResponseBody
}